﻿@model SDE_FIC.Models.Curso

@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_Layout_Sistema.cshtml";
}

<h2>Editar</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Curso</legend>
            @Html.HiddenFor(model => model.IdCurso)
         <div class="editor-label">
            <b>Nome do Curso</b>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CursoNome)
            @Html.ValidationMessageFor(model => model.CursoNome)
        </div>

        <div class="editor-label">
            <b>Descrição</b>
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.Descricao)
            @Html.ValidationMessageFor(model => model.Descricao)
        </div>

        <div class="editor-label">
            <b>Carga Horária (h)</b>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CargaHoraria)
            @Html.ValidationMessageFor(model => model.CargaHoraria)
        </div>

        <p>
            <input type="submit" value="Save" class="btn" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Voltar para Listagem", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
